<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: QcnSim/TrafficGenerator.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d21be12960473ba5c51e5f9beea3525e.html">QcnSim</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">TrafficGenerator.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_traffic_generator_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_entity_8h.html">Entity.h</a>&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_scheduler_8h.html">Scheduler.h</a>&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_simulator_globals_8h.html">SimulatorGlobals.h</a>&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_token_8h.html">Token.h</a>&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_event_type_8h.html">EventType.h</a>&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_protocol_data_unit_8h.html">ProtocolDataUnit.h</a>&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_traffic_generator.html">   42</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_traffic_generator.html">TrafficGenerator</a>: <span class="keyword">public</span> <a class="code" href="class_entity.html">Entity</a> {</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">   44</a></span>&#160;    <a class="code" href="class_scheduler.html">Scheduler</a> &amp;<a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>;   </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">   45</a></span>&#160;    <a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;<a class="code" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a>;  </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">   46</a></span>&#160;    <a class="code" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>; </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">   47</a></span>&#160;    std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>;  </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">   48</a></span>&#160;    std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">   49</a></span>&#160;    std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">   50</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>;  </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_traffic_generator.html#aaa73cfc4e885ecfeecbe894efd232493">   51</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_traffic_generator.html#aaa73cfc4e885ecfeecbe894efd232493">isOn</a>; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_traffic_generator.html#a29c9cdcb113742700e3f7fcbcb7ee325">   52</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_traffic_generator.html#a29c9cdcb113742700e3f7fcbcb7ee325">tokensGeneratedCount</a>; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <a class="code" href="class_traffic_generator.html#a6fcdb1ce1b3fb4f35c021ea8b99f6cf5">TrafficGenerator</a>(<a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;<a class="code" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a>, <a class="code" href="class_scheduler.html">Scheduler</a> &amp;<a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>, <a class="code" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>,</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>, <span class="keywordtype">int</span> <a class="code" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <a class="code" href="class_traffic_generator.html#a6fcdb1ce1b3fb4f35c021ea8b99f6cf5">TrafficGenerator</a>(<a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;<a class="code" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a>, <a class="code" href="class_scheduler.html">Scheduler</a> &amp;<a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>, <a class="code" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>,</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>, <span class="keywordtype">int</span> <a class="code" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> seed);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;Token&gt; <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">createInstanceTrafficEvent</a>(<span class="keywordtype">bool</span> recordRoute = <span class="keyword">false</span>) =0; <span class="comment">// Pure virtual, must be implemented by child classes.</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;Token&gt; <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">createInstanceTrafficEvent</a>(std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, <span class="keywordtype">bool</span> recordRoute = <span class="keyword">false</span>) =0; <span class="comment">// Pure virtual, must be implemented by child classes.</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;Token&gt; <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">createInstanceTrafficEvent</a>(std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute, <span class="keywordtype">bool</span> recordRoute = <span class="keyword">false</span>) =0; <span class="comment">// Pure virtual, must be implemented by child classes.</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;Token&gt; <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">createInstanceTrafficEvent</a>(std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute, <span class="keywordtype">bool</span> recordRoute = <span class="keyword">false</span>) =0; <span class="comment">// Pure virtual, must be implemented by child classes.</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;ProtocolDataUnit&gt; <a class="code" href="class_traffic_generator.html#a4efc8d0f973cf1ea906c50e85b6e4ec7">createInstanceTrafficEventPdu</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pduSize, <span class="keywordtype">bool</span> recordRoute = <span class="keyword">false</span>) =0;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;ProtocolDataUnit&gt; <a class="code" href="class_traffic_generator.html#a4efc8d0f973cf1ea906c50e85b6e4ec7">createInstanceTrafficEventPdu</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pduSize, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, <span class="keywordtype">bool</span> recordRoute = <span class="keyword">false</span>) =0;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;ProtocolDataUnit&gt; <a class="code" href="class_traffic_generator.html#a4efc8d0f973cf1ea906c50e85b6e4ec7">createInstanceTrafficEventPdu</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pduSize, std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute, <span class="keywordtype">bool</span> recordRoute = <span class="keyword">false</span>) =0;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;ProtocolDataUnit&gt; <a class="code" href="class_traffic_generator.html#a4efc8d0f973cf1ea906c50e85b6e4ec7">createInstanceTrafficEventPdu</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pduSize, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute, <span class="keywordtype">bool</span> recordRoute = <span class="keyword">false</span>) =0;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_traffic_generator.html#aad024e020fac17dbee74f0da16707df1">turnOn</a>();</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_traffic_generator.html#af1aeb5d90d269a1d1ac5316522b5233e">turnOff</a>();</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_traffic_generator.html#ac8c16ee901079f8279fafd7411098cbd">setTokenContents</a>(std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_traffic_generator.html#ab9b21f5739748fadede79c7e4fa35ed7">getTokensGeneratedCount</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="code" href="class_traffic_generator.html#ac97d2e786e7c91117fbf590988eefd04">getEventType</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_traffic_generator.html#aa9c53b70da6a733cb0723282b291b25f">setEventType</a>(<a class="code" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#a3f71664ca8b268773234c1538539bebf">getTokenContents</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#a2247f62c33cf0875f423b58403af7042">getSource</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_traffic_generator.html#ad5c0ccdbf176c8aadd4b1bc7771ea326">setSource</a>(std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#abb89d1eefa73ddf5ea95167bd9245b48">getDestination</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_traffic_generator.html#a9984034478b838d1f09d275e297f3309">setDestination</a>(std::shared_ptr&lt;Entity&gt; <a class="code" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;};</div>
<div class="ttc" id="class_traffic_generator_html_a4efc8d0f973cf1ea906c50e85b6e4ec7"><div class="ttname"><a href="class_traffic_generator.html#a4efc8d0f973cf1ea906c50e85b6e4ec7">TrafficGenerator::createInstanceTrafficEventPdu</a></div><div class="ttdeci">virtual std::shared_ptr&lt; ProtocolDataUnit &gt; createInstanceTrafficEventPdu(unsigned int pduSize, bool recordRoute=false)=0</div><div class="ttdoc">Creates an instance of traffic event with PDU. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00279">TrafficGenerator.cpp:279</a></div></div>
<div class="ttc" id="_event_type_8h_html"><div class="ttname"><a href="_event_type_8h.html">EventType.h</a></div></div>
<div class="ttc" id="_event_type_8h_html_a2628ea8d12e8b2563c32f05dc7fff6fa"><div class="ttname"><a href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a></div><div class="ttdeci">EventType</div><div class="ttdoc">EventType enum class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_type_8h_source.html#l00029">EventType.h:29</a></div></div>
<div class="ttc" id="class_scheduler_html"><div class="ttname"><a href="class_scheduler.html">Scheduler</a></div><div class="ttdoc">Scheduler class. </div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8h_source.html#l00058">Scheduler.h:58</a></div></div>
<div class="ttc" id="class_traffic_generator_html_aa9c53b70da6a733cb0723282b291b25f"><div class="ttname"><a href="class_traffic_generator.html#aa9c53b70da6a733cb0723282b291b25f">TrafficGenerator::setEventType</a></div><div class="ttdeci">virtual void setEventType(EventType eventType)</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00222">TrafficGenerator.cpp:222</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a6fcdb1ce1b3fb4f35c021ea8b99f6cf5"><div class="ttname"><a href="class_traffic_generator.html#a6fcdb1ce1b3fb4f35c021ea8b99f6cf5">TrafficGenerator::TrafficGenerator</a></div><div class="ttdeci">TrafficGenerator(SimulatorGlobals &amp;simulatorGlobals, Scheduler &amp;scheduler, EventType eventType, std::shared_ptr&lt; Entity &gt; tokenContents, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination, int priority)</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00037">TrafficGenerator.cpp:37</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a2247f62c33cf0875f423b58403af7042"><div class="ttname"><a href="class_traffic_generator.html#a2247f62c33cf0875f423b58403af7042">TrafficGenerator::getSource</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Entity &gt; getSource() const </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00231">TrafficGenerator.cpp:231</a></div></div>
<div class="ttc" id="class_traffic_generator_html_ac97d2e786e7c91117fbf590988eefd04"><div class="ttname"><a href="class_traffic_generator.html#ac97d2e786e7c91117fbf590988eefd04">TrafficGenerator::getEventType</a></div><div class="ttdeci">virtual EventType getEventType() const </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00213">TrafficGenerator.cpp:213</a></div></div>
<div class="ttc" id="_entity_8h_html"><div class="ttname"><a href="_entity_8h.html">Entity.h</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a29c9cdcb113742700e3f7fcbcb7ee325"><div class="ttname"><a href="class_traffic_generator.html#a29c9cdcb113742700e3f7fcbcb7ee325">TrafficGenerator::tokensGeneratedCount</a></div><div class="ttdeci">unsigned int tokensGeneratedCount</div><div class="ttdoc">Count of tokens (events) generated by this traffic generator. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00052">TrafficGenerator.h:52</a></div></div>
<div class="ttc" id="class_entity_html"><div class="ttname"><a href="class_entity.html">Entity</a></div><div class="ttdoc">Entity class. </div><div class="ttdef"><b>Definition:</b> <a href="_entity_8h_source.html#l00029">Entity.h:29</a></div></div>
<div class="ttc" id="_simulator_globals_8h_html"><div class="ttname"><a href="_simulator_globals_8h.html">SimulatorGlobals.h</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a42261ccf207f61a401473a106bc0bae3"><div class="ttname"><a href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">TrafficGenerator::simulatorGlobals</a></div><div class="ttdeci">SimulatorGlobals &amp; simulatorGlobals</div><div class="ttdoc">Reference to SimulatorGlobals object, to get random generator info. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_aa1943a93355f1856e639a0f163413249"><div class="ttname"><a href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent(bool recordRoute=false)=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00075">TrafficGenerator.cpp:75</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a3f71664ca8b268773234c1538539bebf"><div class="ttname"><a href="class_traffic_generator.html#a3f71664ca8b268773234c1538539bebf">TrafficGenerator::getTokenContents</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Entity &gt; getTokenContents() const </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00204">TrafficGenerator.cpp:204</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00046">TrafficGenerator.h:46</a></div></div>
<div class="ttc" id="class_traffic_generator_html_ad5c0ccdbf176c8aadd4b1bc7771ea326"><div class="ttname"><a href="class_traffic_generator.html#ad5c0ccdbf176c8aadd4b1bc7771ea326">TrafficGenerator::setSource</a></div><div class="ttdeci">virtual void setSource(std::shared_ptr&lt; Entity &gt; source)</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00240">TrafficGenerator.cpp:240</a></div></div>
<div class="ttc" id="class_traffic_generator_html_aaa73cfc4e885ecfeecbe894efd232493"><div class="ttname"><a href="class_traffic_generator.html#aaa73cfc4e885ecfeecbe894efd232493">TrafficGenerator::isOn</a></div><div class="ttdeci">bool isOn</div><div class="ttdoc">True if generator is on (and generating traffic); false if generator is off. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00051">TrafficGenerator.h:51</a></div></div>
<div class="ttc" id="class_traffic_generator_html_ac8c16ee901079f8279fafd7411098cbd"><div class="ttname"><a href="class_traffic_generator.html#ac8c16ee901079f8279fafd7411098cbd">TrafficGenerator::setTokenContents</a></div><div class="ttdeci">virtual void setTokenContents(std::shared_ptr&lt; Entity &gt; tokenContents)</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00195">TrafficGenerator.cpp:195</a></div></div>
<div class="ttc" id="_scheduler_8h_html"><div class="ttname"><a href="_scheduler_8h.html">Scheduler.h</a></div></div>
<div class="ttc" id="class_traffic_generator_html_af1aeb5d90d269a1d1ac5316522b5233e"><div class="ttname"><a href="class_traffic_generator.html#af1aeb5d90d269a1d1ac5316522b5233e">TrafficGenerator::turnOff</a></div><div class="ttdeci">virtual void turnOff()</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00186">TrafficGenerator.cpp:186</a></div></div>
<div class="ttc" id="class_traffic_generator_html_ab9b21f5739748fadede79c7e4fa35ed7"><div class="ttname"><a href="class_traffic_generator.html#ab9b21f5739748fadede79c7e4fa35ed7">TrafficGenerator::getTokensGeneratedCount</a></div><div class="ttdeci">virtual unsigned int getTokensGeneratedCount() const </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00258">TrafficGenerator.cpp:258</a></div></div>
<div class="ttc" id="class_traffic_generator_html_acb5d8009cf49ff99a6fee75ec456e166"><div class="ttname"><a href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">TrafficGenerator::tokenContents</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; tokenContents</div><div class="ttdoc">Reference to Entity object that will be carried by the token. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00047">TrafficGenerator.h:47</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00044">TrafficGenerator.h:44</a></div></div>
<div class="ttc" id="class_simulator_globals_html"><div class="ttname"><a href="class_simulator_globals.html">SimulatorGlobals</a></div><div class="ttdoc">Simulator-scope variables and parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8h_source.html#l00158">SimulatorGlobals.h:158</a></div></div>
<div class="ttc" id="_protocol_data_unit_8h_html"><div class="ttname"><a href="_protocol_data_unit_8h.html">ProtocolDataUnit.h</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a2158c9e714171e5a04032571021b23c4"><div class="ttname"><a href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">TrafficGenerator::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00050">TrafficGenerator.h:50</a></div></div>
<div class="ttc" id="class_traffic_generator_html_aad024e020fac17dbee74f0da16707df1"><div class="ttname"><a href="class_traffic_generator.html#aad024e020fac17dbee74f0da16707df1">TrafficGenerator::turnOn</a></div><div class="ttdeci">virtual void turnOn()</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00178">TrafficGenerator.cpp:178</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9984034478b838d1f09d275e297f3309"><div class="ttname"><a href="class_traffic_generator.html#a9984034478b838d1f09d275e297f3309">TrafficGenerator::setDestination</a></div><div class="ttdeci">virtual void setDestination(std::shared_ptr&lt; Entity &gt; destination)</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00267">TrafficGenerator.cpp:267</a></div></div>
<div class="ttc" id="class_traffic_generator_html"><div class="ttname"><a href="class_traffic_generator.html">TrafficGenerator</a></div><div class="ttdoc">TrafficGenerator parent class. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00042">TrafficGenerator.h:42</a></div></div>
<div class="ttc" id="_token_8h_html"><div class="ttname"><a href="_token_8h.html">Token.h</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a4f69b85034831c2c40e789b0c0e11511"><div class="ttname"><a href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">TrafficGenerator::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Entity to which the generator is attached (to which tokens are generated). </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00048">TrafficGenerator.h:48</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a6ba09ea9c5df93de64af75886df0b11b"><div class="ttname"><a href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">TrafficGenerator::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity, to which the generated tokens will be sent. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00049">TrafficGenerator.h:49</a></div></div>
<div class="ttc" id="class_traffic_generator_html_abb89d1eefa73ddf5ea95167bd9245b48"><div class="ttname"><a href="class_traffic_generator.html#abb89d1eefa73ddf5ea95167bd9245b48">TrafficGenerator::getDestination</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Entity &gt; getDestination() const </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00249">TrafficGenerator.cpp:249</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Jan 6 2014 12:30:37 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
